package tests;

import static org.junit.Assert.*;

import org.junit.Test;

import static org.junit.Assert.*;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import dao.DAOFactory;
import dao.KorisnikDAO;
public class DAOFactoryTest {

		
		@BeforeClass
		public static void fixtureSetUp() throws Exception {
			DAOFactory.connect();
		}

		@AfterClass
		public static void fixtureTearDown() throws Exception {
			DAOFactory.disconnect();
		}
		

		@Test
		public void testGetKorisnikDAO() throws Exception {
			KorisnikDAO kdao = DAOFactory.getKorisnikDAO();
			assertNotNull(kdao);
		}

}
